//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package messages;

import common.ByteStream;

public class ChangeFarmNameResponse extends Base {
    public static final int MsgType = 24104;
    public boolean success = false;
    private int response;

    public ChangeFarmNameResponse() {
        super(24104);
    }

    public void encode(ByteStream stream) {
    }

    public void decode(ByteStream stream) {
        this.response = stream.readInt();
        this.success = this.response == 1;
        this.isDecoded = true;
    }

    public String toString() {
        return this.success?"  Change farm name response:  The new farm name was accepted.":"  Change farm name response: -->> The new farm name was rejected by the server. <<--";
    }
}
